package system.entity;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

@Table(name = "sys_state")
@Data
public class SysState implements Serializable {
    /**
     * ID
     */
    @Id
    @Column(name = "id")
    @ApiModelProperty(value = "ID")
    private Long id;

    /**
     * 分组
     */
    @Column(name = "group_name")
    @ApiModelProperty(value = "分组")
    private String groupName;

    /**
     * 名称
     */
    @Column(name = "name")
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 节点
     */
    @Column(name = "node_name")
    @ApiModelProperty(value = "节点")
    private String nodeName;

    /**
     * 数值
     */
    @Column(name = "vi")
    @ApiModelProperty(value = "数值")
    private Long vi;

    /**
     * 浮点值
     */
    @Column(name = "vd")
    @ApiModelProperty(value = "浮点值")
    private Double vd;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 过期时间
     */
    @Column(name = "expire_time")
    @ApiModelProperty(value = "过期时间")
    private Date expireTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 备注
     */
    @Column(name = "remark")
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 字符值
     */
    @Column(name = "vs")
    @ApiModelProperty(value = "字符值")
    private String vs;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", groupName=").append(groupName);
        sb.append(", name=").append(name);
        sb.append(", nodeName=").append(nodeName);
        sb.append(", vi=").append(vi);
        sb.append(", vd=").append(vd);
        sb.append(", createTime=").append(createTime);
        sb.append(", expireTime=").append(expireTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", remark=").append(remark);
        sb.append(", vs=").append(vs);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}